package com.cnbot.httpsdk;

import android.app.Application;

import com.cnbot.dchttpsdk.api.ApiEngine;
import com.cnbot.httpsdk.api.IHttpInterface;
import com.cnbot.dchttpsdk.constant.HttpConstant;
import com.cnbot.dchttpsdk.utils.NetUtil;

/**
 * 描述：
 * 作者：dc on 2019/1/18 19:43
 * 邮箱：597210600@qq.com
 */
public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        //网络请求
        new ApiEngine.Builder<IHttpInterface>().baseUrl(HttpConstant.HTTPSERVICEIP).apiService(IHttpInterface.class).build();
        NetUtil.init(this);
    }
}
